package com.shycloud.mido.organ.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shycloud.mido.organ.api.dto.DiaryDTO;
import com.shycloud.mido.organ.api.dto.DiaryReviewDto;
import com.shycloud.mido.organ.api.entity.DiaryEntity;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface DiaryMapper extends BaseMapper<DiaryEntity> {

	IPage<DiaryDTO> getMyDiary(@Param("page") Page page, @Param("memberId") String memberId, @Param("statusArr") String[] statusArr);
	
	List<DiaryReviewDto> getRecommendForMiniHomeByMemberId(@Param("memberId") String memberId,@Param("size") Integer size);
	
	List<DiaryReviewDto> getRecommendForMiniHome(@Param("size") Integer size);

	IPage<DiaryDTO> getFriendDiary(@Param("page") Page page, @Param("memberId") String memberId);

	IPage<DiaryDTO> getNoFriendDiary(@Param("page") Page page, @Param("memberId") String memberId);

	IPage<DiaryReviewDto> getReviewPage(@Param("page") Page page, @Param("phone") String phone, @Param("startDate")String startDate, @Param("endDate") String endDate, @Param("status") String status,@Param("recommendFlag")String recommendFlag);

}
